package com.binyouwei.designpatterns.structural_type.facade;

/**
 * @author 宾有为
 * @date 2024/7/12 20:01
 * @link https://blog.csdn.net/baidu_41616022?type=blog
 * @describe：
 **/
public class FacadeShapeMaker {
    private FacadeShape circle;
    private FacadeShape rectangle;
    private FacadeShape square;

    public FacadeShapeMaker() {
        circle = new FacadeCircle();
        rectangle = new FacadeRectangle();
        square = new FacadeSquare();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
